﻿using System;
using System.Collections.Generic;
using System.Data;
using System.IO;
using System.Linq;
using System.Text;
using System.Xml.Linq;

namespace XExcel
{
    /// <summary>
    /// 列表，其中可能包含异常信息
    /// </summary>
    /// <typeparam name="T"></typeparam>
    public class XList<T> : List<T>
    {
        public IList<Exception> Exceptions { get; set; }

        public void AddException(Exception ex)
        {
            if(Exceptions == null)
            {
                Exceptions = new List<Exception>();
            }

            Exceptions.Add(ex);
        }
    }
}